package ru.rchervot.sanasar.client.rpc;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class SavedQuery implements AsyncCallback<SaveQueryResponse> {
	
	@Override
	public void onFailure(Throwable oops) {
	}
	
	@Override
	public void onSuccess(SaveQueryResponse result) {
		saved(result.getQueryId());
	}
	
	public abstract void saved(Integer queryId);
}

